package com.cds.alert.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 
 * <p>
 * 类描述：文件访问记录表
 * <p>
 * 作     者： migrant
 * <p>
 * 日     期： 2014年3月10日
 * <p>
 * 时     间： 上午8:50:47
 * <p>
 */
@Entity
@Table(name = "alert_log_chat")
public class AlertAlarmChat extends IdEntity {
	/** 阅读状态, 0: 未读; 1: 已读*/
	private Integer read;
	/**日志产生时间*/
	private Date logTime;
	/**聊天软件*/
	private SoftwareType software;
	/**源IP地址*/
	private String srcIp;
	/**源端口*/
	private int srcPort;
	/**目标IP地址*/
	private String destIp;
	/**目标端口*/
	private int destPort;
	/**发送账号*/
	private String sendId;
	/**发件人*/
	private String sender;
	/**接收账号*/
	private String receiveId;
	/**收件人*/
	private String receiver;
	/**聊天内容*/
	private String content;

	/**MAC地址*/
	private String mac;
	
	/**关联的用户名*/
	private String username;
	/**关联的机构名*/
	private String groupname;
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getGroupname() {
		return groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}
	
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	
	public Integer getRead() {
		return read;
	}

	public void setRead(Integer read) {
		this.read = read;
	}
	
	public Date getLogTime() {
		return logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public SoftwareType getSoftware() {
		return software;
	}

	public void setSoftware(SoftwareType software) {
		this.software = software;
	}

	public String getSrcIp() {
		return srcIp;
	}

	public void setSrcIp(String srcIp) {
		this.srcIp = srcIp;
	}

	public int getSrcPort() {
		return srcPort;
	}

	public void setSrcPort(int srcPort) {
		this.srcPort = srcPort;
	}

	public String getDestIp() {
		return destIp;
	}

	public void setDestIp(String destIp) {
		this.destIp = destIp;
	}

	public int getDestPort() {
		return destPort;
	}

	public void setDestPort(int destPort) {
		this.destPort = destPort;
	}

	public String getSendId() {
		return sendId;
	}

	public void setSendId(String sendId) {
		this.sendId = sendId;
	}

	public String getReceiveId() {
		return receiveId;
	}

	public void setReceiveId(String receiveId) {
		this.receiveId = receiveId;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
